If indent is negative, don't move the first line out into the margin,
authorHavoc Pennington <hp@redhat.com>
Wed, 15 Nov 2000 19:50:45 +0000 (19:50 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Wed, 15 Nov 2000 19:50:45 +0000 (19:50 +0000)
2000-11-15  Havoc Pennington  <hp@redhat.com>

* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextlayout.c

index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index d5242787ca8e74628b46ac088c9d321cf31d1d77..2aa3385d213a2a3f475989a80cb16693d4519d46 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtktextlayout.c (set_para_values): If indent is negative,
+       don't move the first line out into the margin, instead move the
+       whole paragraph in order to make space for the first line within 
+       the margin
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/gtktextview.c (changed_handler): offset redraw rect by
index fe5cbf31dcd55239ca6e727f1534128bbd8f0f5e..f6c1e755e456e0881ef34cec37a8ac574413c092 100644 (file)
@@ -1117,21 +1117,8 @@ set_para_values (GtkTextLayout      *layout,
   display->left_margin = style->left_margin;
   display->right_margin = style->right_margin;
   
-  if (style->indent < 0)
-    {
-      /* This means the margins can be negative. FIXME
-       * test that things work if they are.
-       */
-      
-      if (pango_align == PANGO_ALIGN_LEFT)
-        display->left_margin += style->indent;
-      else if (pango_align == PANGO_ALIGN_RIGHT)
-        display->right_margin += style->indent;
-    }
-  
   display->x_offset = display->left_margin;
 
-
   pango_layout_set_indent (display->layout,
                            style->indent * PANGO_SCALE);